package com.approval.dto;

import lombok.Data;
import java.util.Date;
import java.util.List;

/**
 * 权限响应DTO
 */
@Data
public class PermissionResponse {
    
    private Long id;
    private String permissionCode;
    private String permissionName;
    private String description;
    private String permissionType;
    private String resource;
    private String operation;
    private Long parentId;
    private String parentPermissionName;
    private String path;
    private String component;
    private String icon;
    private Integer sortOrder;
    private Integer status;
    private Date createTime;
    private Date updateTime;
    
    // 子权限
    private List<PermissionResponse> children;
    
    // 角色数量
    private Long roleCount;
}
